import request from '@/router/axios';

export const getInfoBySn = (sequenceNumber) => {
  return request({
    url: '/api/mes-product/product/into-by-sn',
    method: 'get',
    params: {
      sequenceNumber
    }
  });
};

export const getInfoByTrackNo = (params) => {
  return request({
    url: '/api/mes-admin/bom/info-by-partno-and-positionno',
    method: 'get',
    params: {
      ...params
    }
  });
};

export const getList = (current, size, params) => {
  return request({
    url: '/api/mes-product/mro/refueling/page?isFlagJL=true',
    method: 'get',
    params: {
      ...params,
      size,
      current
    }
  });
};

export const remove = (id) => {
  return request({
    url: '/api/mes-product/mro/refueling/del',
    method: 'get',
    params: {
      id
    }
  });
};

export const submit = (data) => {
  return request({
    url: '/api/mes-product/mro/refueling/submit',
    method: 'post',
    data
  });
};
